package com.vue.power.backend.sys.dto;

import java.util.List;

public class RoleTreeDto {

    private String treeId;
    // 菜单名字
    private String title;
    // 菜单地址
    private String url;
    // 菜单编码
    private String code;
    // 菜单状态【1：可用；2：禁用】
    private String state;
    // 菜单类型【1：菜单节点；2：按钮节点】
    private String type;
    // 父节点唯一标识
    private String parentTreeId;
    // 父节点名字
    private String parentTreeName;
    // 默认子节点都是展开的
    private boolean expand = true;
    // 默认节点是没有选中的
    private boolean checked = false;
    // 子节点数据
    private List<RoleTreeDto> children;

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isExpand() {
        return expand;
    }

    public void setExpand(boolean expand) {
        this.expand = expand;
    }

    public String getTreeId() {
        return treeId;
    }

    public void setTreeId(String treeId) {
        this.treeId = treeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getParentTreeId() {
        return parentTreeId;
    }

    public void setParentTreeId(String parentTreeId) {
        this.parentTreeId = parentTreeId;
    }

    public String getParentTreeName() {
        return parentTreeName;
    }

    public void setParentTreeName(String parentTreeName) {
        this.parentTreeName = parentTreeName;
    }

    public List<RoleTreeDto> getChildren() {
        return children;
    }

    public void setChildren(List<RoleTreeDto> children) {
        this.children = children;
    }
}
